home *** CD-ROM | disk | FTP | other *** search
/ Software of the Month Club 1997 February / Software of the Month Club 1997 February.iso / pc / dos / edu / calc / postscr.bat < prev    next >
Encoding:
DOS Batch File  |  1996-10-28  |  635 b   |  17 lines

  1. rem PostScript output example
  2. calc Xmax = 210*[cm]
  3. calc Xmin = -130*[cm]
  4. calc Ymax = 125*[N]
  5. calc Ymin = -49*[N]
  6. calc dX = (Xmax-Xmin)/100
  7. calc x = {Xmin,Xmax,dX}
  8. calc Xrange = Xmax-Xmin
  9. calc y = (Ymax-Ymin)*(sin(20*(x/Xrange)^2)+1)/2+Ymin
  10. calc y "Reactive Force [N] ->" "Specimen position [m] ->"
  11. rem landscape picture: output file name starts with an Uppercase letter:
  12. calc Large.ps = y "Reactive Force [N] ->" "Specimen position [m] ->"
  13. rem portrait picture: output file name starts with a lowercase letter:
  14. calc small.ps = y "Reactive Force [N] ->" "Specimen position [m] ->"
  15. rem print Large.ps
  16. rem print small.ps
  17.